package main

import (
	"context"
	"fmt"
)

func main() {
	ctx := context.Background()
	//ctx, cancel := context.WithTimeout(ctx, time.Second)
	ctx, cancel := context.WithCancel(ctx)
	defer cancel()
	tt, bo := ctx.Deadline()
	fmt.Println(tt)
	fmt.Println(bo)
}
